<div class="form" style="background:url('<?php echo Yii::app()->request->baseUrl; ?>/themes/hachimaki/imagens/bg5.png') repeat scroll top center transparent; height:auto; padding-top:8%; width:370px; text-align:left; line-height: 1; border: 3px solid #CCCCCC;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cad-polo-form',
	'enableAjaxValidation'=>false,
)); ?>
	<h1 class="titulo_login" style="color: #444444;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 34px;
    margin-top: -53px;
    text-align: center;
    width: 100%;
    z-index: -10000;">Cadastro de Polo</h1>
    
	<p class="note">Campos com  <span class="required">*</span> são obrigatórios.</p>


	<?php 
        echo $form->errorSummary($model); ?>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cod_gestor'); ?>
                <?php echo $form->dropDownList($model,'cod_gestor', cad_gestor::loadTableGestor()); ?>
		<?php echo $form->error($model,'cod_gestor'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cod_parceiros'); ?>		
                <?php echo $form->dropDownList($model,'cod_parceiros', cad_parceiros::loadTableParceiro()); ?>              
		<?php echo $form->error($model,'cod_parceiros'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'nome_fantazia'); ?>
		<?php echo $form->textField($model,'nome_fantazia',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'nome_fantazia'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'diretoria_ensino'); ?>
		<?php echo $form->textField($model,'diretoria_ensino',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'diretoria_ensino'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'habitantes'); ?>
		<?php echo $form->textField($model,'habitantes'); ?>
		<?php echo $form->error($model,'habitantes'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'logradouro'); ?>
		<?php echo $form->textField($model,'logradouro',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'logradouro'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'numero'); ?>
		<?php echo $form->textField($model,'numero',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'numero'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'complemento'); ?>
		<?php echo $form->textField($model,'complemento',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'complemento'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'bairro'); ?>
		<?php echo $form->textField($model,'bairro',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'bairro'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cidade'); ?>
		<?php echo $form->textField($model,'cidade',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'cidade'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cep'); ?>
		<?php echo $form->textField($model,'cep',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'cep'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'estado'); ?>
		<?php echo $form->textField($model,'estado',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'estado'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'telefone'); ?>
		<?php echo $form->textField($model,'telefone',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'telefone'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'e_mail'); ?>
		<?php echo $form->textField($model,'e_mail',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'e_mail'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'responsavel'); ?>
		<?php echo $form->textField($model,'responsavel',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'responsavel'); ?>
	</div>

	<div class="row buttons" style="text-align:center; margin-bottom:0px; position:relative; clear:both; padding-top:25px;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Salvar' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->